//
//  CollectionViewCell.swift
//  Swift_Study
//
//  Created by apple on 2018/9/27.
//  Copyright © 2018年 dminfo. All rights reserved.
//

import UIKit

class CollectionViewCell: UICollectionViewCell {

  @IBOutlet weak var bottomLabel: UILabel!
  @IBOutlet weak var topImg: UIImageView!
  var interest : Interest! {
    didSet {
      updateUI()
    }
  }
  fileprivate func updateUI() {
    bottomLabel?.text! = interest.title
    topImg.image = UIImage(named: "hello")!
  }
  override func awakeFromNib() {
        super.awakeFromNib()
       
    }
  override func layoutSubviews() {
    super.layoutSubviews()
    self.layer.cornerRadius = 10.0
    self.clipsToBounds = true
  }

}
